import Vue from 'vue';
import App from './App.vue';
import router from './router';
import { Tabbar, TabbarItem, Swipe, SwipeItem, Popup, Icon, Lazyload, ShareSheet, Uploader, Badge, Notify, Toast, Loading, NoticeBar } from 'vant';
import './assets/rem.js';
import Axios from 'axios';
import VueAxios from 'vue-axios';
import store from "./store/index.js";
import VueAwesomeSwiper from 'vue-awesome-swiper';
import 'swiper/swiper-bundle.css';


Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Popup);
Vue.use(Icon);
Vue.use(Lazyload);
Vue.prototype.$http = Axios;
Vue.use(VueAxios, Axios);
Vue.use(ShareSheet);
Vue.use(Uploader);
Vue.use(Badge);
Vue.use(Notify);
Vue.use(Toast);
Vue.use(Loading);
Vue.use(VueAwesomeSwiper);
Vue.use(NoticeBar);

Vue.config.productionTip = false

new Vue({
    router, // 将router挂载在vue实例上
    store, // 将store挂载在vue实例上
    render: h => h(App),
}).$mount('#app')